{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "039bd76d",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 1."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "c391d985",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "name:cyp\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "'cyp'"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "input(\"name:\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "d64e47bc",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "请输入用户名:cyp\n",
      "请输入密码:123456\n"
     ]
    }
   ],
   "source": [
    "# 用户注册\n",
    "username = input(\"请输入用户名:\")\n",
    "password = input(\"请输入密码:\") "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "c1cd3131",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "cyp\n"
     ]
    }
   ],
   "source": [
    "print(username)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "b6e3bc02",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "123456\n"
     ]
    }
   ],
   "source": [
    "print(password)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "2db4361b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "请输入用户名:vv\n",
      "请输入密码:775\n",
      "账号或密码不正确，请重新尝试！！！\n"
     ]
    }
   ],
   "source": [
    "# 用户登录\n",
    "username = input(\"请输入用户名:\")\n",
    "password = input(\"请输入密码:\")\n",
    "if username == \"cyp\" and password == \"123456\":\n",
    "    print(\"欢迎尊贵的vvvVIP用户登录！！!\")\n",
    "else:\n",
    "    print(\"账号或密码不正确，请重新尝试！！！\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "8ba295fa",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "输入你的姓名：cyp\n",
      "输入你的年龄：18\n",
      "输入你的职业：学生\n",
      "输入你的薪资:10000\n",
      "----INFOcyp-----\n",
      "姓名是：cyp\n",
      "年龄为：18\n",
      "工作是：学生\n",
      "薪资为：1000000000\n"
     ]
    }
   ],
   "source": [
    "# 输入内容\n",
    "name = input(\"输入你的姓名：\")\n",
    "age = input(\"输入你的年龄：\")\n",
    "job = input(\"输入你的职业：\")\n",
    "salary = input(\"输入你的薪资:\")\n",
    "# info为展示的数据\n",
    "info = \"\"\"----INFO\"\"\" + name + \"\"\"-----\n",
    "姓名是：\"\"\"+ name + \"\"\"\n",
    "年龄为：\"\"\"+ age + \"\"\"\n",
    "工作是：\"\"\" + job + \"\"\"\n",
    "薪资为：\"\"\" + salary\n",
    "\n",
    "# 打印结果\n",
    "print(info)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3b37b341",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
